home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_exteriorambient.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  88 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_exteriorambient.cog
  4. #
  5. # Plays random sounds at random locations
  6. #
  7. # [DS] [GGJ]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    pulse
  14.     message    startup
  15.     message    crossed
  16.  
  17.     thing        soundPos0        nolink
  18.     thing        soundPos1        nolink
  19.     thing        soundPos2        nolink
  20.     thing        soundPos3        nolink
  21.     thing        soundPos4        nolink
  22.     thing        soundPos5        nolink
  23.     thing        soundPos6        nolink
  24.     thing        soundPos7        nolink
  25.     thing        soundPos8        nolink
  26.     thing        soundPos9        nolink
  27.     thing        soundPos10        nolink
  28.     thing        soundPos11        nolink
  29.     thing        soundPos12        nolink
  30.     thing        soundPos13        nolink
  31.     thing        soundPos14        nolink
  32.     thing        soundPos15        nolink
  33.     thing        soundPos16        nolink
  34.     thing        soundPos17        nolink
  35.     thing        soundPos18        nolink
  36.     thing        soundPos19        nolink
  37.     thing        soundPos20        nolink
  38.     thing        soundPos21        nolink
  39.     thing        soundPos22        nolink
  40.  
  41.     sound        wav0=olv_outside_a01.wav        local
  42.     sound        wav1=olv_outside_a02.wav        local
  43.     sound        wav2=olv_outside_a03.wav        local
  44.     sound        wav3=olv_outside_a04.wav        local
  45.     sound        wav4=olv_outside_a05.wav        local
  46.     sound        wav5=olv_outside_a06.wav        local
  47.     sound        wav6=olv_outside_a07.wav        local
  48.     sound        wav7=olv_outside_a08.wav        local
  49.     
  50.     surface        watertunnel
  51.     
  52.     float    minDist=5                local
  53.     float    maxDist=35                local
  54.     float    volume=0.8                local
  55.     int        sndnum                      local
  56.     int        numsounds=8                local
  57.     int        numlocl=23                local        
  58.     int        cnt                        local
  59.  
  60. end
  61.  
  62. code
  63.  
  64. # ........................................................................................
  65.  
  66. startup:
  67.  
  68.     setpulse(1.0);
  69.     return;
  70.  
  71. # ........................................................................................
  72.  
  73. pulse:
  74.     sndnum = rand()*numsounds;
  75.     cnt = rand()*numlocl;
  76.     PlaySoundThing(wav0[sndnum], soundPos0[cnt], volume, minDist, maxDist, 0);
  77.     return;
  78. # ........................................................................................
  79. crossed:
  80. if (GetSenderRef() == waterTunnel)
  81. {
  82.     SetPulse(0.0);
  83. }
  84. return;
  85.  
  86. end
  87.  
  88.